﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;



namespace HA.ModFlow.Controls
{
   public class PCGridArray<T>
    {
       public PCGridArray(T[,] data)
       {
           this._nRows = data.GetLength(0);
           this._nCols = data.GetLength(1);
           this._nLayers = 1;

           this._layers = new List<PCGridArrayLayer<T>>();

           this._layers.Add(new PCGridArrayLayer<T>(data));

       }


        int _nRows;

        public int NRows
        {
            get { return _nRows; }
            
        }
        int _nCols;

        public int NCols
        {
            get { return _nCols; }
           
        }

        int _nLayers;

        public int NLayers
        {
            get { return _nLayers; }
           
        }


        List<PCGridArrayLayer<T>> _layers;

        public PCGridArrayLayer<T> this[int index]
        {
            get { return this._layers[index]; }
        }




        

       
    }
}
